<?php

class DSN {
	
	private static $_connection;
	
	private static $host = "localhost";
	private static $port = 3306;
	private static $username = "root";
	private static $password = "actiontrip";
	private static $database = "yamb";
	
	public static function _getConnection() {
		if(!self::$_connection) {
			self::$_connection = @mysql_connect(self::$host.":".self::$port, self::$username, self::$password) or die("Error connecting to DB");
			@mysql_select_db(self::$database) or die("Unknown DB");
			mysql_query("SET NAMES utf8", self::$_connection);
		}
		return self::$_connection;
	}
	
}

?>